//
//  CatgoryListModel.m
//  share_business
//
//  Created by 吴于凌 on 2017/9/23.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import "CatgoryListModel.h"

@implementation CatgoryListModel

@end

@implementation CatgoryListModelData

+ (NSDictionary *)JSONKeyPathsByPropertyKey{
    return @{
             @"Code" : @"Code",
             @"Name" : @"Name",
             @"IconPath":@"IconPath",
             @"Level":@"Level",
             @"SubList":@"SubList"
             };
}
//SubList数据，转成列表
+(NSValueTransformer *)SubListJSONTransformer{
    return [MTLJSONAdapter arrayTransformerWithModelClass:[CatgoryListModelSubList class]];
}
@end

@implementation CatgoryListModelSubList
+ (NSDictionary *)JSONKeyPathsByPropertyKey{
    return @{
             @"Code" : @"Code",
             @"Name" : @"Name",
             @"IconPath":@"IconPath",
             @"Level":@"Level"
             };
}

@end
